<?php
/**
 * @name informationdesigner.php
 * @date Created on 2015-12-4
 * @author liulei
 */
namespace haibao\cms\model\data\designer;

Class InformationDesigner extends \haibao\cms\model\data\Base{
    
    /**
     * 1文章2图集
     */
    const INFO_TYPE_ARTICLE = 1;
    const INFO_TYPE_PIC = 2;
    
    /**
     * 是否主标签1是0否
     */
    const ISPRIMAIY_YES = 1;
    const ISPRIMARY_NO = 0;
    
    /**
     * 文章或图集ID
     */
    public $InfoId;
    
    /**
     * 1文章2图集
     */
    public $InfoType;
    
    /**
     * 设计师ID
     */
    public $DesignerTagId;
    
    /**
     * 是否主标签1是0否
     */
    public $IsPrimaiy = 0;
    
    /**
     * 发布日期
     */
    public $PublishTime;
    
    public $DesignInfo;
    
    public $Info;
    public function __construct(){
        parent::__construct();
        $this->intField('InfoId', 'InfoId',true);
        $this->intField('InfoType', 'InfoType',true);
        $this->intField('DesignerTagId', 'DesignerTagId',true);
        $this->intField('IsPrimaiy', 'IsPrimaiy',true);
        $this->dateField('PublishTime', 'PublishTime',true);
        
        $this->setTableName('InformationDesigner');
    }
}